<%-- 
    Document   : mailColegiados
    Created on : 25/11/2009, 08:59:01 PM
    Author     : ADMINISTRADOR
--%>

<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>

<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<%@taglib prefix="t" uri="http://myfaces.apache.org/tomahawk"%>
<%@taglib prefix="r" uri="http://richfaces.ajax4jsf.org/rich" %>
<%@taglib uri="http://richfaces.org/a4j" prefix="a4j"%>

<script language="javascript" src="/colegiatura/js/funciones.js"></script>
<link href="/colegiatura/Estilos/estilosEsymons.css" rel="stylesheet" type="text/css" />

<f:view>
<h:form enctype="multipart/form-data">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr class="texto3">
      <td height="35" align="left">
    <h:outputLabel value="Envio de Correo a Colegiado" />    </td>
  </tr>
  <tr><td height="42">
     <h:outputLabel rendered="#{emailController.exito==true}" value="Envio de Correo Satisfactorio..." styleClass="texto22" /></td>
  </tr>
 <tr>
     <td><fieldset><legend>Enviar E-mail</legend>
         <table width="1000" border="0" cellspacing="0" cellpadding="0">
         <tr>
    <td height="35" colspan="4" align="left" valign="middle">
    <h:commandButton action="#{emailController.enviarEmailColegiados}" value="  Enviar  " styleClass="enlace9" />
    <h:commandButton action="#{emailController.limpiar}" value=" Cancelar " styleClass="enlace9" />
    <h:commandButton action="#{emailController.agregaOtro}" value="Agregar Colegiado" styleClass="enlace9" /></td>
  </tr>
  <tr><td width="110" height="32" align="left" valign="middle">  
        <h:outputLabel value="Origen : " styleClass="texto20" /></td>
    <td colspan="3" align="left">
        <h:inputText value="#{emailController.from}" styleClass="fondo012" size="150" /></td>
  </tr>
  <tr>
    <td height="32" align="left" valign="middle">
        <h:outputLabel value="Asunto : " styleClass="texto20" /></td>
    <td colspan="3" align="left">
        <h:inputText value="#{emailController.title}" styleClass="fondo012" size="150" /></td>
  </tr>
  <h:panelGroup rendered="#{emailController.busca!=3}">
  <tr>
    <td height="32" align="left" valign="middle">
        <h:outputLabel value="Destino : " styleClass="texto20" /></td>
    <td colspan="3" align="left">
        <h:inputTextarea value="#{emailController.destino}" styleClass="fondo012"cols="152" rows="2" /></td>
  </tr>
  </h:panelGroup>
    <tr>
    <td height="32" align="left" valign="middle">
        <h:outputLabel value="Adjuntar : " styleClass="texto20" /></td>
    <td colspan="3" align="left">
        <t:inputFileUpload value="#{emailController.upFile}" styleClass="fondo012"  storage="file" size="110"/></td>
  </tr>
  <tr>
    <td height="33" align="left" valign="middle">
        <h:outputLabel value="Mensaje : " styleClass="texto20" /></td>
    <td colspan="3" rowspan="5" align="left" valign="top">
        <h:inputTextarea value="#{emailController.text}" styleClass="fondo012" cols="152" rows="15" /></td>
  </tr>
  <tr>
    <td align="left">&nbsp;</td>
  </tr>
  <tr>
    <td align="left">&nbsp;</td>
  </tr>
  <tr>
    <td align="left">&nbsp;</td>
  </tr>
  <tr>
    <td align="left">&nbsp;</td>
  </tr>
  <tr>
    <td height="25" align="left">
       </td>
    <td width="297" align="left"></td>
    <td width="293" align="left"></td>
    <td width="300" align="left"></td>
  </tr>
    </table>   
    </fieldset> </td>
  </tr>  
</table>
<%--r:scrollableDataTable rendered="#{emailController.listaPersonaCorreoCip!=null}"
   value="#{emailController.listaPersonaCorreoCip}" rowClasses="TableImpar,TablePar"
    var="persona" id="TableDirectivo" sortMode="single" width="960px" >
       <r:column width="100" headerClass="texto18">
             <f:facet name="header"><h:outputLabel value="Nro CIP" /></f:facet>
            <h:outputLabel value="#{persona.colegiado.colnumeroCip}" styleClass="texto20" />
        </r:column>
        <r:column width="300" headerClass="texto18">
            <f:facet name="header"><h:outputLabel value="Colegiado" /></f:facet>
            <h:outputLabel value="#{persona.nombreCompleto}" styleClass="texto20" />
        </r:column>
        <r:column width="200" headerClass="texto18">
            <f:facet name="header"><h:outputLabel value="Correo Personal" /></f:facet>
            <h:selectBooleanCheckbox value="#{persona.email}" />
            <h:outputLabel value="#{persona.solcorreopersonal1}" styleClass="texto20" />
        </r:column>
        <r:column width="200" headerClass="texto18">
            <f:facet name="header"><h:outputLabel value="Correo CIP" /></f:facet>
            <h:selectBooleanCheckbox value="#{persona.emailCIP}" />
            <h:outputLabel value="#{persona.solcorreocip}" styleClass="texto20" />
        </r:column>
        <r:column width="100" headerClass="texto18">
            <f:facet name="header"><h:outputLabel value="Seleccionar" /></f:facet>
            &nbsp;&nbsp;&nbsp;<h:selectBooleanCheckbox value="#{persona.seleccionado}" />
        </r:column>
        <r:column width="50" headerClass="texto18">
            <f:facet name="header"></f:facet> &nbsp;&nbsp;&nbsp;
            <h:commandButton action="#{emailController.quitarDeLaLista}" image="/imagenColegiatura/eliminar.png" title="Quitar">
                <f:setPropertyActionListener target="#{emailController.personaNatural}" value="#{persona}" />
            </h:commandButton>
        </r:column>
</r:scrollableDataTable--%>
</h:form>
</f:view>

